*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --ink: #eaf7ff;
  --muted: #8ca8b8;
  --panel: rgba(9, 24, 35, 0.94);
  --line: rgba(117, 220, 255, 0.18);
  --cyan: #55d6ff;
  --blue: #3478f6;
  --green: #4ade80;
  --orange: #ff6b35;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #040a10;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: flex;
}

#slotScreen,
#menuScreen,
#createScreen,
#packsScreen,
#packEditorScreen,
#faceEditorScreen,
#foodLikesScreen {
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(52, 120, 246, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 78%, rgba(74, 222, 128, 0.12), transparent 25rem),
    linear-gradient(145deg, #07131d, #02070b);
}

.slot-card,
.menu-card,
.create-card,
.pack-card,
.pack-editor-card,
.face-editor-card,
.food-likes-card {
  width: min(38rem, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.menu-card {
  text-align: center;
}

.slot-card {
  text-align: center;
}

.slot-card > .button {
  width: 100%;
  margin-top: 0.6rem;
}

.logo {
  width: 5rem;
  height: 5rem;
  display: grid;
  place-items: center;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  font-size: 2.7rem;
  background: radial-gradient(circle at 30% 25%, #d9f8ff, #55d6ff 25%, #174ea6 70%);
  box-shadow: 0 0 40px rgba(85, 214, 255, 0.32);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1;
}

.subtitle,
.empty,
.requirement {
  color: var(--muted);
}

.inventory-summary {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.inventory-summary strong {
  color: var(--ink);
}

.slot-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.slot-heading {
  margin: 1.5rem 0 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.slot-heading span,
.section-heading span {
  color: var(--muted);
  font-size: 0.75rem;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.save-slot {
  position: relative;
  min-height: 5.2rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.save-slot:hover {
  border-color: var(--cyan);
  background: rgba(85, 214, 255, 0.08);
}

.save-slot.empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  border-style: dashed;
}

.save-slot strong,
.save-slot span {
  display: block;
}

.save-slot strong {
  padding-right: 4.2rem;
}

.save-slot span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.delete-slot,
.rename-slot {
  position: absolute;
  top: 0.45rem;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.delete-slot {
  right: 0.45rem;
  color: #ff9aa9;
  background: rgba(255, 80, 110, 0.12);
}

.rename-slot {
  right: 2.4rem;
  color: #9ad8ff;
  background: rgba(85, 214, 255, 0.14);
}

.save-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.save-name-row h1 {
  min-width: 0;
}

.rename-save {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 50%;
  color: #9ad8ff;
  background: rgba(85, 214, 255, 0.14);
  cursor: pointer;
}

.marble-chip.dead {
  opacity: 0.55;
}

.marble-chip.selectable {
  cursor: pointer;
}

.marble-chip.selectable:hover {
  opacity: 1;
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.eliminated-panel {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.eliminated-panel .marble-list {
  justify-content: flex-start;
  margin-bottom: 0;
}

.modal-rejoin {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.modal-rejoin .button {
  width: 100%;
}

.modal-rejoin .marble-list {
  justify-content: flex-start;
  margin: 0.55rem 0 0;
}

.secret-slot-hint {
  color: var(--muted);
  font-size: 0.75rem;
}

.menu-topline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
}

.menu-topline h1 {
  margin: 0;
  overflow: hidden;
  font-size: 1.45rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-button.inline {
  position: static;
  flex: 0 0 auto;
}

.pack-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.round-badge,
.difficulty-badge {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 999px;
  color: #ffd3c2;
  background: rgba(255, 107, 53, 0.1);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.marble-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  min-height: 0;
}

.marble-chip {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  max-width: 9rem;
  padding: 0.38rem 0.6rem 0.38rem 0.38rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.marble-chip .mini-marble {
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  box-shadow: inset -4px -5px 7px rgba(0, 0, 0, 0.28);
}

.marble-chip span {
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty {
  margin: 0.8rem 0;
  font-size: 0.9rem;
}

.menu-actions,
.form-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.8rem;
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.button.primary {
  color: #031018;
  background: linear-gradient(135deg, #8ae8ff, #34b8ec);
}

.button.secondary {
  background: linear-gradient(135deg, #315fdd, #7638dc);
}

.button.mini {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  color: #102016;
  background: linear-gradient(135deg, #b8f36a, #4ade80);
}

.button.roleplay {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  color: #2a1020;
  background: linear-gradient(135deg, #ffb4d9, #fb7185);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.requirement {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}

.requirement.warning {
  color: #ffd166;
}

.leaderboard-panel {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
}

.leaderboard {
  max-height: 12rem;
  margin: 0.75rem 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.leaderboard li {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(117, 220, 255, 0.09);
}

.leaderboard .rank {
  width: 1.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.leaderboard .mini-marble {
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.leaderboard .name {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard .score {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.leaderboard li.dead {
  opacity: 0.43;
}

.js-show-top-marble {
  width: 100%;
  margin-top: 0.75rem;
}

.top-marble-showcase {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.top-marble-showcase[hidden] {
  display: none !important;
}

.top-marble-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 0.85rem;
  background: rgba(255, 209, 102, 0.08);
}

.top-marble-card .mini-marble {
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: inset -4px -5px 7px rgba(0, 0, 0, 0.28);
}

.top-marble-meta {
  min-width: 0;
}

.top-marble-card strong {
  display: block;
  overflow: hidden;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-marble-card .top-save {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.top-marble-card .top-round {
  color: #ffd166;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.top-marble-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.pack-placement {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: left;
}

.pack-placement-list,
.pack-list,
.pack-draft-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.pack-placement-row,
.pack-row,
.pack-draft-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.pack-row {
  grid-template-columns: 1fr auto auto;
}

.pack-row strong,
.pack-placement-row strong,
.pack-draft-row strong {
  display: block;
  font-size: 0.86rem;
}

.pack-row span,
.pack-placement-row span {
  color: var(--muted);
  font-size: 0.75rem;
}

.pack-balls-preview {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.pack-balls-preview i {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.pack-delete,
.pack-remove-marble {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 80, 110, 0.25);
  border-radius: 50%;
  color: #ff9aaa;
  background: rgba(255, 80, 110, 0.1);
  cursor: pointer;
}

.pack-name-field {
  display: block;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.pack-name-field input,
.pack-marble-form input:not([type="color"]) {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: #061019;
}

.pack-marble-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pack-marble-form input[type="color"] {
  width: 3rem;
  height: 2.65rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #061019;
}

.pack-draft-row {
  grid-template-columns: auto 1fr auto;
}

.pack-draft-meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.pack-draft-gender {
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 700;
}

.pack-draft-gender.missing {
  color: #fb7185;
}

.pack-gender-need {
  margin: 0.85rem 0 0;
  color: #fda4af;
  font-size: 0.86rem;
  font-weight: 700;
}

.pack-gender-panel {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #07131c;
}

.pack-gender-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.pack-gender-list {
  display: grid;
  gap: 0.55rem;
}

.pack-gender-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.5rem;
}

.pack-gender-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-gender-pick {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #061019;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.pack-gender-pick.on {
  border-color: #38bdf8;
  color: #e0f2fe;
  background: #0c4a6e;
}

.pack-intel-row {
  display: grid;
  grid-template-columns: auto 1fr auto minmax(7rem, auto);
  align-items: center;
  gap: 0.5rem;
}

.pack-intel-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-intel-input {
  width: 4.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--ink);
  background: #061019;
  font: inherit;
  font-weight: 800;
}

.pack-intel-label {
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pack-draft-row .mini-marble {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.create-card {
  position: relative;
}

.create-card h2 {
  margin-bottom: 1.1rem;
  font-size: 1.8rem;
}

.back-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.marble {
  border-radius: 50%;
  background: var(--marble-color, var(--cyan));
  box-shadow:
    inset -14px -16px 24px rgba(0, 0, 0, 0.34),
    inset 8px 8px 15px rgba(255, 255, 255, 0.45),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.preview {
  width: 7rem;
  height: 7rem;
  display: grid;
  place-items: center;
  margin: 0 auto 1.4rem;
  border: 3px solid rgba(255, 255, 255, 0.72);
}

.preview span {
  max-width: 75%;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
}

.create-gender {
  margin-top: 1.15rem;
}

.create-gender > span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.create-gender .pack-gender-lead {
  margin-top: 0.35rem;
}

.create-gender-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.create-pair {
  margin-top: 1.1rem;
}

.create-pair > span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.create-pair select,
.pair-form select {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: #061019;
}

.pair-panel {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #07131c;
}

#saveGenderList {
  margin: 0.75rem 0 0.85rem;
}

#saveGenderList .mini-marble {
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.pair-list,
.pair-form {
  display: grid;
  gap: 0.55rem;
}

.pair-form {
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  margin-top: 0.7rem;
}

.pair-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto 1fr auto;
  align-items: center;
  gap: 0.4rem;
}

.pair-heart {
  color: #fb7185;
  font-weight: 900;
}

.pair-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.pair-chip {
  color: #fda4af;
  font-style: normal;
  font-weight: 800;
}

.friend-chip {
  color: #86efac;
  font-style: normal;
  font-weight: 800;
}

.friend-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.friend-name {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: #061019;
}

.friend-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.friend-pick {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #061019;
  color: var(--ink);
  font-size: 0.85rem;
}

.friend-pick .mini-marble {
  width: 0.85rem;
  height: 0.85rem;
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.friend-row span {
  flex: 1;
  color: var(--muted);
  font-size: 0.85rem;
}

.create-card label {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.create-card input:not([type="color"]) {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  outline: 0;
  color: var(--ink);
  background: #061019;
}

.create-card input:focus {
  border-color: var(--cyan);
}

.create-card input[type="color"] {
  display: block;
  width: 100%;
  height: 3rem;
  margin-top: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #061019;
  cursor: pointer;
}

.form-actions {
  grid-template-columns: 1fr 1fr;
}

.game-screen {
  min-height: 100vh;
  flex-direction: column;
  background: #03070a;
}

.game-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #08141e;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.button.rec {
  color: #ff8a9a;
  border-color: rgba(255, 49, 92, 0.45);
  background: rgba(255, 49, 92, 0.14);
}

.button.rec.active {
  color: #fff;
  background: #ff315c;
  animation: recPulse 1.1s ease-in-out infinite;
}

@keyframes recPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 49, 92, 0.45);
  }
  50% {
    box-shadow: 0 0 0 0.35rem rgba(255, 49, 92, 0);
  }
}

.game-header h2 {
  margin: 0;
  font-size: 1rem;
}

.game-header p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.button.compact {
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.55rem 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  background: #050c12;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-block {
  width: 1rem;
  height: 0.65rem;
  border-radius: 0.15rem;
}

.legend-block.blue {
  background: var(--blue);
}

.legend-block.lava {
  background: var(--orange);
}

.legend-block.good-lava {
  background: #38bdf8;
}

.legend-block.jump-pad {
  background: #facc15;
}

.legend-block.safe {
  background: var(--green);
}

.legend-block.hazard {
  border-radius: 50%;
  background: #ff315c;
}

.canvas-wrap {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0.7rem;
}

.record-badge {
  position: absolute;
  top: 1.15rem;
  left: 1.15rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  color: #fff;
  background: #ff315c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  pointer-events: none;
  animation: recPulse 1.1s ease-in-out infinite;
}

.song-picker {
  position: fixed;
  right: 1rem;
  bottom: 5.4rem;
  z-index: 10000;
  width: min(92vw, 22rem);
  max-height: min(50vh, 22rem);
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(8, 20, 30, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.song-picker strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.song-list {
  display: grid;
  gap: 0.3rem;
}

.song-item {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.song-item:hover,
.song-item.active {
  border-color: var(--line);
  background: rgba(85, 214, 255, 0.12);
}

.rec-toast {
  z-index: 10001;
  background: rgba(255, 49, 92, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.split-pair-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem 0;
}

.split-pair-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.split-pair-rooms .button.active {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.22);
}

.house-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem 0;
}

.house-nav .button.active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.22);
}

.house-nav strong {
  align-self: center;
  font-size: 0.82rem;
}

.house-marble-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: 100%;
}

.house-marble-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.house-marble-btn .mini-marble {
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.roleplay-faces {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.45rem 0.85rem 0;
}

.roleplay-faces strong {
  font-size: 0.82rem;
}

.roleplay-face-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.feed-all-drop.drop-hover {
  border: 2px dashed #fbbf24;
  background: rgba(251, 191, 36, 0.28);
  transform: scale(1.03);
}

.marble-chat-open {
  flex-basis: 100%;
}

.marble-chat {
  display: flex;
  flex: 1;
  min-height: 18rem;
  overflow: hidden;
  border-top: 1px solid #9ca3af;
  background: #ffffff;
  color: #111827;
}

.marble-chat-groups {
  width: min(13rem, 34%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  border-right: 1px solid #9ca3af;
  background: #e5e7eb;
  color: #111827;
}

.marble-chat-groups strong {
  font-size: 0.82rem;
  color: #111827;
}

.marble-chat-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  overflow: auto;
}

.marble-chat-group {
  text-align: left;
  border: 1px solid #9ca3af;
  border-radius: 0.55rem;
  background: #d1d5db;
  color: #111827;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.marble-chat-group.active,
.marble-chat-group:hover {
  border-color: #4b5563;
  background: #9ca3af;
}

.marble-chat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.marble-chat-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #d1d5db;
  background: #ffffff;
}

.marble-chat-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

.marble-chat .back-button {
  color: #111827;
}

.marble-chat-messages {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  background: #ffffff;
}

.marble-chat-empty {
  color: #6b7280;
  margin: auto;
}

.marble-chat-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.marble-chat-msg i {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.28rem;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.marble-chat-msg strong {
  display: block;
  font-size: 0.78rem;
  color: #111827;
}

.marble-chat-msg p {
  margin: 0.15rem 0 0;
  color: #1f2937;
}

.marble-chat-compose {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-end;
  padding: 0.65rem 0.75rem;
  border-top: 8px solid #6b7280;
  background: #9ca3af;
}

.marble-chat-sender {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
  color: #374151;
}

.marble-chat-sender select,
.marble-chat-compose input {
  border: 1px solid #6b7280;
  border-radius: 0.45rem;
  background: #ffffff;
  color: #111827;
  padding: 0.4rem 0.5rem;
}

.marble-chat-compose input {
  flex: 1;
  min-width: 10rem;
}

.roleplay-face {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #0b1822;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}

.roleplay-face.active,
.roleplay-face:hover {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.22);
}

.roleplay-face.thumb {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.15rem;
  background: #f8fafc;
  overflow: hidden;
  touch-action: none;
}

.roleplay-face.thumb img,
.roleplay-face.thumb canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.roleplay-face.thumb.drink-thumb {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.face-thumb-wrap {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
}

.face-copy {
  position: absolute;
  top: -0.35rem;
  left: -0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.face-copy:hover {
  background: #115e59;
}

.face-delete {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #be123c;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.face-delete:hover {
  background: #9f1239;
}

.menu-face-list {
  width: 100%;
  justify-content: center;
}

.custom-level-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: min(22rem, 100%);
  padding: 0.45rem 2.3rem 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.custom-level-row span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-level-delete {
  top: 50%;
  right: 0.4rem;
  width: 1.55rem;
  height: 1.55rem;
  font-size: 1rem;
  transform: translateY(-50%);
}

.face-editor-card {
  width: min(42rem, 100%);
  text-align: center;
}

.food-meta-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: end;
  margin: 0.45rem 0 0.75rem;
  text-align: left;
}

.food-name-wrap {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.food-name-wrap input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: #061019;
}

.food-variant-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: end;
}

.food-variant-badge {
  position: absolute;
  right: -0.3rem;
  bottom: -0.3rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
  pointer-events: none;
}

.face-edit {
  position: absolute;
  bottom: -0.35rem;
  left: -0.35rem;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.face-edit:hover {
  background: #1e40af;
}

.face-color-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  min-height: 2.8rem;
  font-weight: 800;
}

.face-color-wrap input[type="color"] {
  width: 2.6rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #0b1822;
  cursor: pointer;
}

.food-likes-card {
  width: min(46rem, 100%);
  text-align: center;
}

.food-likes-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  text-align: left;
}

.food-like-card {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(7, 18, 28, 0.72);
}

.food-like-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.food-like-head img,
.food-like-head .food-like-empty {
  width: 3rem;
  height: 3rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  object-fit: contain;
}

.food-like-empty {
  display: grid;
  place-items: center;
  color: #0f172a;
  font-weight: 800;
}

.food-like-head strong {
  display: block;
  font-size: 1.05rem;
}

.food-like-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.food-fan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.food-fan-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}

.food-fan-chip i {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.face-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.85rem 0 0;
}

.face-tool.active,
.face-toolbar .button.active {
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.28);
}

.face-editor-stage {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.7rem;
}

#faceCanvas {
  width: min(100%, 20rem);
  height: auto;
  aspect-ratio: 1;
  border: 2px solid #111;
  border-radius: 0.4rem;
  background:
    linear-gradient(45deg, #ececec 25%, transparent 25%),
    linear-gradient(-45deg, #ececec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ececec 75%),
    linear-gradient(-45deg, transparent 75%, #ececec 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  cursor: crosshair;
  touch-action: none;
}

#faceCanvas.drop-canvas {
  border: 0;
  border-radius: 0;
  clip-path: polygon(
    50% 1%,
    66% 16%,
    82% 30%,
    95% 46%,
    99% 62%,
    95% 78%,
    80% 93%,
    50% 99%,
    20% 93%,
    5% 78%,
    1% 62%,
    5% 46%,
    18% 30%,
    34% 16%
  );
}

.face-frame-label {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.face-editor-keys {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

#faceFrameShortcuts {
  display: inline-flex;
  gap: 1.2rem;
}

.face-editor-keys b {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  color: var(--ink);
  background: #0b1822;
}

#gameCanvas {
  display: block;
  width: min(100%, calc((100vh - 8.8rem) * 1.6667));
  max-height: calc(100vh - 8.8rem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #07111a;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  touch-action: none;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(1, 5, 8, 0.78);
  backdrop-filter: blur(6px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(25rem, 100%);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  text-align: center;
  background: #0a1823;
}

.modal-card.minigame-picker {
  width: min(36rem, 100%);
  max-height: min(92vh, 46rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.minigame-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.minigame-toolbar input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--ink);
  background: #061019;
}

.minigame-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 0.65rem;
  max-height: min(46vh, 24rem);
  overflow: auto;
  padding-right: 0.2rem;
}

.minigame-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.minigame-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  cursor: pointer;
}

.minigame-choice:hover {
  border-color: rgba(184, 243, 106, 0.55);
  background: rgba(74, 222, 128, 0.12);
}

.minigame-choice .mini-icon {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 1.45rem;
}

.minigame-choice strong {
  font-size: 0.92rem;
}

.food-mode-list {
  max-height: none;
}

#foodFeastMode[hidden],
#minigameBrowse[hidden],
#minigameCloseRow[hidden] {
  display: none;
}

#foodFeastModeHint {
  margin: 0.85rem 0 0.2rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.minigame-choice span {
  color: var(--muted);
  font-size: 0.74rem;
}

.modal-icon {
  margin-bottom: 0.5rem;
  font-size: 3rem;
}

.modal-card p {
  color: var(--muted);
}

.modal-actions {
  display: grid;
  gap: 0.6rem;
}

.secret-toast {
  position: fixed;
  z-index: 45;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(74, 222, 128, 0.5);
  border-radius: 999px;
  color: #dcfce7;
  background: rgba(8, 55, 30, 0.95);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  font-size: 0.82rem;
  font-weight: 800;
}

.secret-toast[hidden] {
  display: none;
}

@media (max-width: 620px) {
  .slot-card,
  .menu-card,
  .create-card,
  .pack-card,
  .pack-editor-card,
  .face-editor-card {
    padding: 1.35rem;
  }

  .slot-list {
    grid-template-columns: 1fr;
  }

  .pack-marble-form {
    grid-template-columns: 1fr auto;
  }

  .pack-marble-form .button {
    grid-column: 1 / -1;
  }

  .pack-gender-row {
    grid-template-columns: auto 1fr;
  }

  .pack-gender-pick {
    grid-column: span 1;
  }

  .pair-form {
    grid-template-columns: 1fr;
  }

  .pair-row {
    grid-template-columns: auto 1fr auto;
  }

  .legend {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .legend span {
    flex: 1;
  }

  .game-header {
    gap: 0.45rem;
  }

  .game-header h2 {
    font-size: 0.84rem;
  }
}

#levelEditorScreen.active {
  display: block;
  overflow-y: auto;
  padding: 1.1rem 1.1rem 5.5rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(52, 120, 246, 0.18), transparent 28rem),
    linear-gradient(145deg, #07131d, #02070b);
}

.level-editor-card {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 1.2rem 1.1rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--panel);
}

.level-part-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 0.75rem 0 0.2rem;
}

@media (min-width: 760px) {
  #levelEditorScreen.mini-editor .level-part-groups {
    grid-template-columns: 1fr 1fr;
  }
}

.level-transform-tools {
  margin-bottom: 0.55rem;
}

.level-part-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.level-part {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.level-part.active {
  border-color: var(--cyan);
  background: rgba(85, 214, 255, 0.16);
}

#levelEditorCanvas {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  max-height: 42vh;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #071018;
  cursor: crosshair;
  touch-action: none;
}

.level-transform-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.55rem;
}

#levelEraser.active {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.22);
  color: #ffe8df;
}

.script-edit-panel {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: rgba(8, 20, 32, 0.78);
}

.script-edit-fields {
  display: grid;
  gap: 0.45rem;
  margin: 0.5rem 0;
}

.script-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.88rem;
}

.script-field input,
.script-field select {
  max-width: 10rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 0.25rem 0.4rem;
}

.text-anim-card {
  width: min(760px, calc(100% - 2rem));
  margin: 1.4rem auto 3rem;
  padding: 1.2rem 1.3rem 1.5rem;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.text-anim-card textarea {
  width: 100%;
  min-height: 7rem;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  padding: 0.7rem 0.8rem;
}

.text-anim-scan {
  margin: 0.7rem 0;
  color: #9be7ff;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.scan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.scan-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.04);
}

.scan-line {
  line-height: 1.7;
  font-size: 1.02rem;
}

.scan-hit {
  font-weight: 800;
}

.scan-word {
  font-weight: 600;
  opacity: 0.78;
}

.text-anim-stage {
  margin-top: 0.8rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #061018;
}

.text-anim-stage canvas {
  width: 100%;
  height: auto;
  display: block;
}

.text-anim-result {
  margin-top: 0.85rem;
}

.text-anim-duration-field {
  margin-top: 0.7rem;
}

.text-anim-duration-field input {
  width: 7rem;
}

.text-anim-library {
  margin-top: 0.9rem;
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.35);
}

.text-anim-library .eyebrow {
  margin: 0 0 0.55rem;
}

.text-anim-saved {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.text-anim-saved-empty {
  margin: 0;
  color: #9be7ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.text-anim-saved-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.text-anim-saved-row strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-anim-check {
  margin: 0.8rem 0 0.4rem;
  padding: 0.85rem 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.45);
}

.text-anim-check-hint {
  margin: 0 0 0.65rem;
  color: #9be7ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.text-anim-check-preview {
  line-height: 1.85;
  font-size: 1.05rem;
  font-weight: 700;
}

.text-anim-check-fixes {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.text-anim-check-fixes strong {
  color: #fecaca;
  font-size: 0.86rem;
}

.text-anim-fix {
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 650;
}

.text-anim-fix b {
  color: #fca5a5;
}

.text-anim-ok {
  color: #86efac;
  font-weight: 800;
}

.scan-miss {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.16);
  border-bottom: 2px dashed #f87171;
  border-radius: 4px;
  padding: 0 0.12rem;
  font-weight: 800;
}
